package com.vito.dcs.trajectory.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.vito.base.factory.IDFactory;
import com.vito.dcs.trajectory.dao.DataTransactionMapper;
import com.vito.dcs.trajectory.model.DataTransactionModel;
import com.vito.dcs.trajectory.service.DataTransactionService;

@Service
public class DataTransactionServiceImpl implements DataTransactionService {

	@Autowired
	private DataTransactionMapper dataTransactionMapper;
	
	@Override
	public void saveDataTransaction(DataTransactionModel dataTransactionModel) {
		String id = IDFactory.getIDFactory().getIdInc("tbl_dcs_data_transaction")+"";
		dataTransactionModel.setId(id);
		dataTransactionMapper.saveDataTransaction(dataTransactionModel);
	}

}
